<template>
  <div class="header">
    {{title}}
  </div>
</template>

<script>
export default {
  data() {
    return {
      title:"我是头部组件"
    }
  }
}
</script>

<style>
  .header{
    background: #CCC;
    height: 40px;
    line-height: 40px;
    text-align: center;
  }
</style>